#对类增加计数，最终print输出
class Student(object):
    count = 0
    def __init__(self, name):
        self.name = name
        Student.count += 1
#实例化一个学生
Hanmeimei = Student('Hanmeimei')
print(Student.count)
